
#include"Server.hpp"
#include <iostream>
using namespace std;

int main()
{
    Server server;
    cout << "Pos 1" << endl;
    server.OpenPipeForRead();
    //
    cout << "Pos 2" << endl;
    string message;
    while (true)
    {
        if (server.RecvPipe(&message) > 0)
            cout << "client say : " << message << endl;
        else
            break;
        cout << "Pos 3" << endl;
    }
    cout << "client quit... Me too .. " << endl;
    server.ClosePipe();
    return 0;
}
